package org.formal.business.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.formal.common.base.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 会员课程表实体类
 *
 * @author jiangyan
 * @since 2020-05-16
 */
@Data
@Table(name = "t_member_course")
@EqualsAndHashCode(callSuper = true)
public class MemberCourseEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 会员编号
     */
    @Column(name="MEMBER_ID")
    private String memberId;
    /**
     * 课程编号
     */
    @Column(name="COURSES_ID")
    private String coursesId;
    /**
     * 指定教练id
     */
    @Column(name="COACH_ID")
    private String coachId;
    /**
     * 购买课程类型 0：包月，1：单节
     */
    @Column(name="CURRICULUM_TYPE")
    private String curriculumType;
    /**
     * 包月时显示月数，单节时显示节数
     */
    @Column(name="TOTAL_CURRICULUM")
    private String totalCurriculum;
    /**
     * 总金额应收
     */
    @Column(name="TOTAL_MONEY")
    private BigDecimal totalMoney;
    /**
     * 总金额实收
     */
    @Column(name="ACTUAL_MONEY")
    private BigDecimal actualMoney;
    /**
     * 单价
     */
    @Column(name="PRICE")
    private BigDecimal price;
    /**
     * 备注
     */
    @Column(name="REMARK")
    private String remark;
    /**
     * 生效日期时间
     */
    @Column(name="EFFECTIVE_TS")
    private LocalDateTime effectiveTs;

}
